package com.hdsx.restful.ygzt.clwxqy.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.ao.base.BaseOpearte;
import com.hdsx.restful.ygzt.clwxqy.bean.Clwxqy;
import com.hdsx.restful.ygzt.clwxqy.mapper.ClwxqyMapper;
import com.hdsx.restful.ygzt.clwxqy.service.ClwxqyService;

@Service
public class ClwxqyServiceImpl extends BaseOpearte<Clwxqy> implements ClwxqyService {
	
	public ClwxqyServiceImpl() {
		super("GIS_CLWXQY");
	}
	
	@Resource(name="clwxqyMapper") 
	private ClwxqyMapper mapper;

	@Override
	public int queryCount(String xzqhbm, String jyyhmc, String lxbm) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name",jyyhmc);
		parameter.put("lxbm",lxbm);
		return mapper.queryCount(parameter);
	}

	@Override
	public List<Clwxqy> queryList(String xzqhbm, String jyyhmc, String lxbm, int begin, int end) {
		Map<String,Object> parameter=new HashMap<String,Object>();
		parameter.put("xzqhbm", xzqhbm);
		parameter.put("name",jyyhmc);
		parameter.put("lxbm",lxbm);
		parameter.put("begin", begin);
		parameter.put("end", end);
		List<Clwxqy> lists=mapper.queryList(parameter);
		return lists;
	}

	@Override
	public Clwxqy queryById(String id) {
		return mapper.selectById(id);
	}
	@Override
	public List<String> selectName(String name){
		return mapper.selectName(name);
	}
}
